namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 故障日志
    /// </summary>
    [SugarTable("fault_log")]
    public class FaultLog : BaseEntity
    {
        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 产线代号
        /// </summary>
        [SugarColumn(ColumnName = "production_line")]
        public string ProductionLine { get; set; }

        /// <summary>
        /// 工位代号
        /// </summary>
        [SugarColumn(ColumnName = "station_code")]
        public string StationCode { get; set; }

        /// <summary>
        /// 故障代号
        /// </summary>
        [SugarColumn(ColumnName = "fault_no")]
        public int? FaultNo { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [SugarColumn(ColumnName = "time_on")]
        public DateTime? TimeOn { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [SugarColumn(ColumnName = "time_end")]
        public DateTime? TimeEnd { get; set; }

        /// <summary>
        /// 间隔时间（s）
        /// </summary>
        public long? Interval { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "creation_time")]
        public DateTime? CreationTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int? State { get; set; }
    }
}